package edu.zut.util;

import org.springframework.util.DigestUtils;

public class MD5Util {

    public static void main(String[] args) {
        String s = encrypt("000000");
        System.out.println("s = " + s);
    }

    public static String encrypt(String source){

        String s = DigestUtils.md5DigestAsHex(source.getBytes());
        source = s.substring(2, 10) + source;
        String s1 = DigestUtils.md5DigestAsHex(source.getBytes());
        return s1;
    }


}
